<?php

namespace app\admin\model;

use app\admin\traits\ScopeUniacid;
use app\common\model\TimeModel;

class KnscyUsers extends TimeModel
{

    protected $name = "users";

    protected $globalScope = ['uniacid'];
    use ScopeUniacid;

    public  function getHexiaoList()
    {
        return ['0'=>'否','1'=>'是核销员',];
    }
    public function getStatusList()
    {
        return ['0'=>'禁用','1'=>'启用',];
    }
    public function getLastLoginTimeAttr($value){
        return   date('Y-m-d H:i:s', $value);
    }
    public function setLastLoginTimeAttr($value){
        return is_numeric($value) ? $value : strtotime($value);
    }
}